package com.nervenets.web.hibernate.domain;

import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccountHold extends DomainObject {
    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;
    private long buildingId;
    private int money;
    private int balance;
    private int useamt;
    private int unholdTime;
}
